CXXFLAGS =	-O2 -g -Wall -fmessage-length=0

OBJS =		wisptalk.o

LIBS =

TARGET =	wisptalk

PREFIX=../ext/libjingle-0.4.0

$(TARGET):	$(OBJS)
	$(CXX) -o $(TARGET) $(OBJS) $(LIBS)

all:
	g++ -DHAVE_CONFIG_H -I. -I. -I$(PREFIX)  -DPOSIX -I/usr/local/include -I/usr/local/include/speex \
	-g -O2 -MT wisptalk_main.o -MD -MP -MF ".deps/wisptalk_main.Tpo" \
	-c -o wisptalk_main.o wisptalk_main.cc
	
	/bin/bash $(PREFIX)/libtool --silent --tag=CXX --mode=link g++  -g -O2  \
	-L/usr/local/lib -L/usr/local/speex/lib -lspeex -lm -o wisptalk  wisptalk_main.o \
	$(PREFIX)/talk/examples/login/libcricketexampleslogin.la \
	$(PREFIX)/talk/session/fileshare/libcricketsessionfileshare.la \
	$(PREFIX)/talk/session/tunnel/libcricketsessiontunnel.la \
	$(PREFIX)/talk/p2p/client/libcricketp2pclient.la \
	$(PREFIX)/talk/p2p/base/libcricketp2pbase.la \
	$(PREFIX)/talk/xmpp/libcricketxmpp.la \
	$(PREFIX)/talk/xmllite/libcricketxmllite.la \
	$(PREFIX)/talk/base/libcricketbase.la -lexpat -lpthread -lssl -lcrypto 
	
clean:
	rm -f $(OBJS) $(TARGET)
